package resource.pojo;

import java.io.Serializable;

public class Roles implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer iDRole=0;
	private boolean approve;
	private boolean accept;
	private boolean decline;
	private boolean revoke;
	private boolean delete;
	private boolean addMember;
	private String description;
	public Roles() {

	}
	public Roles(Integer iDRole, boolean approve, boolean accept, boolean decline,
			boolean revoke,boolean delete,boolean addMember,String description) {
		super();
		this.iDRole = iDRole;
		this.approve=approve;
		this.accept = accept;
		this.decline = decline;
		this.revoke = revoke;
		this.delete=delete;
		this.addMember=addMember;
		this.description=description;
	}
	public Integer getiDRole() {
		return iDRole;
	}
	public void setiDRole(Integer iDRole) {
		this.iDRole = iDRole;
	}
	
	
	public boolean isApprove() {
		return approve;
	}
	public void setApprove(boolean approve) {
		this.approve = approve;
	}
	public boolean isAccept() {
		return accept;
	}
	public void setAccept(boolean accept) {
		this.accept = accept;
	}
	public boolean isDecline() {
		return decline;
	}
	public void setDecline(boolean decline) {
		this.decline = decline;
	}
	public boolean isRevoke() {
		return revoke;
	}
	public void setRevoke(boolean revoke) {
		this.revoke = revoke;
	}
	public boolean isDelete() {
		return delete;
	}
	public void setDelete(boolean delete) {
		this.delete = delete;
	}
	
	public boolean isAddMember() {
		return addMember;
	}
	public void setAddMember(boolean addMember) {
		this.addMember = addMember;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((iDRole == null) ? 0 : iDRole.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Roles other = (Roles) obj;
		if (iDRole == null) {
			if (other.iDRole != null)
				return false;
		} else if (!iDRole.equals(other.iDRole))
			return false;
		return true;
	}
	
	
}
